package com.iedu.bigdata.scala.chapter01

object maxNum2 {
  def main(args: Array[String]): Unit = {
    def maxOfThree(a: Int, b: Int, c: Int): Int = {
      if (a >= b && a >= c) a
      else if (b >= a && b >= c) b
      else c
    }

    val maximum = maxOfThree(10, 20, 15)
    println(s"The maximum value is: $maximum")
  }
}
